package com.sentiment.algorithm;

/**
 * Created by vani:liaozhenlin on 15-4-16.
 * If you meet any question,you can email at 939899727@qq.com
 *
 * @author 廖贞林  from uestc
 */
public class RecordBean {
    private int patt;
    private int patt_senten;
    private String arti_name;
    private int arti_para;
    private int ari_para_senten;
    private double simi;

    public RecordBean(int patt, int patt_senten, String arti, int arti_para,
                      int ari_para_senten,double simi) {
        this.patt = patt;
        this.patt_senten = patt_senten;
        this.arti_name = arti;
        this.arti_para = arti_para;
        this.ari_para_senten = ari_para_senten;
        this.simi=simi;
    }

    public int getPatt() {
        return patt;
    }

    public int getPatt_senten() {
        return patt_senten;
    }

    public String getArti() {
        return arti_name;
    }

    public int getArti_para() {
        return arti_para;
    }

    public int getAri_para_senten() {
        return ari_para_senten;
    }

    @Override
    public String toString() {
        return "RecordBean{" +
                  "patt=" + patt +
                  ", patt_senten=" + patt_senten +
                  ", arti=" + arti_name +
                  ", arti_para=" + arti_para +
                  ", ari_para_senten=" + ari_para_senten +
                  ", simi=" + simi +
                  '}';
    }

    public String toPattern(){
        int temp_patt=patt+1;
        int temp_patt_sentence=patt_senten+1;
        int temp_arti=arti_para+1;
        int temp_arti_senten=ari_para_senten+1;
        return temp_patt+"\t"+temp_patt_sentence+"\t"+
                  arti_name+"\t"+temp_arti+"\t"+temp_arti_senten+"\t"+
                  simi;
    }

    public String toFile(){
        int temp_patt=patt+1;
        int temp_patt_sentence=patt_senten+1;
        int temp_arti=arti_para+1;
        int temp_arti_senten=ari_para_senten+1;
        return "待检测文章第"+temp_patt+"段，第"+temp_patt_sentence+"句---与文档库文章名："+
                  arti_name+"第"+temp_arti+"段，第"+temp_arti_senten+"句疑抄袭，抄袭率为:"+
                  simi;
    }
}
